package com.example.mytest.annotation3;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @ClassName: RedisCache
 * @Description: 模拟 redis 缓存系统
 * @Author: 230689
 * @Date: 2021/9/8 13:57
 * @Version: v1.0
 */
public class RedisCache {


    public static final Map<String, Object> redis = new ConcurrentHashMap<String, Object>();

    public static Object get(String key) {
        return redis.get(key);
    }

    public static void set(String key, Object obj) {
        redis.put(key, obj);
    }

}
